<div id="page-wrapper">
<h4>Daftar Pesanan ON_Store</h4>

<table class="table">
    <tr>
        <th>Tanggal</th>
        <th>Status</th>
        <th>Produk</th>
        <th>Harga</th>
        <th></th>   
    </tr>   
    {foreach from=$pro item=s}
    <tr>
        <td>{$s.tgl}</td>
        <td>{$s.status}</td>
        <td><img src="{$s.img}" width='200px'></td>
        <td>{$s.harga}</td>        
        <td>
            <a href="order.php?a=del&idproduk={$s.idproduk}&idmember={$cookie.c_idm}" onclick = "myFunction()" class="btn btn-small btn-warning">Batal</a>
        </td>
    </tr>
    {assign var=sum value=$sum+$s.harga }
    {/foreach}
    <tr><th>Total</th>
        <th></th>
        <th></th>
        <th>{$sum}.000</th>
    
    </tr>
</table>

<script>
function myFunction() {
    alert("Pemesanan dihapus");
}
</script>

</div>
